package com.dict.mapper;

import com.dict.pojo.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dict.pojo.ExcelDTO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 宋伟宁
* @description 针对表【dict(数据字典)】的数据库操作Mapper
* @createDate 2024-03-06 14:59:30
* @Entity com.dict.pojo.Dict
*/
public interface DictMapper extends BaseMapper<Dict> {

    void insertBatch(List<ExcelDTO> list);

    @Select("SELECT max(id) from dict where parent_id=#{parentId}")
    Long getMax(Long parentId);

    List<Dict> selectAll(Integer parentId);
}




